home *** CD-ROM | disk | FTP | other *** search
/ TOS Silver 2000 / TOS Silver 2000.iso / musik / MIDIFP21 / SOURCES / MIDI_PRT / PRINTER / PRINTER.PIF < prev   
Encoding:
Text File  |  1996-08-03  |  1.6 KB  |  51 lines

  1. /**************************************************************
  2. *
  3. *                PRINTER.PIF
  4. *
  5. **************************************************************/
  6.  
  7. typedef struct 
  8. {
  9.     CICONBLK *icon ;
  10.     char *filename ;          /* for icon text, window info line */
  11.     char *path ;              /* path for metafile if GEM clipboard
  12.                                  can not be used */
  13.     int screen_handle ;       /* screen handle, width and height */
  14.     int screen_width, 
  15.         screen_height ;       /* for metafile dimensioning */
  16.     int print_handle ;        /* VDI handle for printing */
  17.     int print_width,
  18.         print_height ;        /* width and height */
  19.     Awindow *drawer_window ;  /* for use of drawer procedures */
  20. PRINTER_INIT ;
  21.  
  22.  
  23. /*******************************************************************
  24. */
  25.     Awindow *PRINTER_constructor(PRINTER_INIT *) ;
  26. /*
  27. * constructor of the PRINTER object. It
  28. * constructs an object instance of the PRINTER object containing
  29. * ACS object and own data instances.
  30. * OUTPUT:  printer icon on screen and
  31. *          own printer data instance connected to ACS window
  32. *          instance
  33. * RETURN:  errors: NULL or -if successfull- ACS-window pointer,
  34. *          which will be used as handle for the object instance
  35. *******************************************************************/
  36.  
  37. /*******************************************************************
  38. */
  39.     void PRINTER_destructor(
  40.         Awindow *wi                /* window to destruct */
  41.     ) ;
  42. /*
  43. * destructor of the PRINTER object. It
  44. * frees all memory used by ACS and own data instances.
  45. *******************************************************************/
  46.